package com.by.util;

public class PageUtil {
    public static int getTotalPages(int count,int pageSize){
        int totalPages = 0;
        if (count % pageSize == 0){
            totalPages = count / pageSize;
        } else {
            totalPages = (count / pageSize) + 1;
        }
        return totalPages;
    }
}
